home *** CD-ROM | disk | FTP | other *** search
- /*
- * stdefs.h
- *
- * Original code from Julius O. Smith III< jos@ccrma.stanford.edu>
- *
- * Copyright (C) Alberto Vigata - January 2000
- *
- * This file is part of FlasKMPEG, a free MPEG to MPEG/AVI converter
- *
- * FlasKMPEG is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * FlasKMPEG is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with GNU Make; see the file COPYING. If not, write to
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- */
-
- #ifndef _STDEFS_H
- #define _STDEFS_H
-
- #ifndef TRUE
- #define TRUE 1
- #endif
-
- #ifndef FALSE
- #define FALSE 0
- #endif
-
- #ifndef PI
- #define PI (3.14159265358979232846)
- #endif
-
- #ifndef PI2
- #define PI2 (6.28318530717958465692)
- #endif
-
- #define D2R (0.01745329348) /* (2*pi)/360 */
- #define R2D (57.29577951) /* 360/(2*pi) */
-
- #ifndef MAX
- #define MAX(x,y) ((x)>(y) ?(x):(y))
- #endif
- #ifndef MIN
- #define MIN(x,y) ((x)<(y) ?(x):(y))
- #endif
-
- #ifndef ABS
- #define ABS(x) ((x)<0 ?(-(x)):(x))
- #endif
-
- #ifndef SGN
- #define SGN(x) ((x)<0 ?(-1):((x)==0?(0):(1)))
- #endif
-
- //typedef char BOOL;
- typedef short HRWORD;
- typedef unsigned short UHRWORD;
- typedef int RWORD;
- typedef unsigned int URWORD;
-
- #define MAX_HRWORD (32767)
- #define MIN_HRWORD (-32768)
-
-
- #define INLINE inline
-
-
- #endif /* _STDEFS_H */
-